using System;
using Sinacor.Infra.Common;
using System.Collections.Generic;
using Sinacor.Servico.Infra.Licensing.BusinessEntity;
using Sinacor.Servico.Infra.Licensing.Service.DataContract;

namespace Sinacor.Servico.Infra.Licensing.Service.ServiceImplementation.Translator
{
    /// <summary>
    /// Classe tradutora entre objetos LicenseBE e LicenseDC
    /// </summary>
    public class LicenseBEToLicenseDC : BaseTranslator<Sinacor.Servico.Infra.Licensing.Service.DataContract.LicenseDC, Sinacor.Servico.Infra.Licensing.BusinessEntity.LicenseBE, List<Sinacor.Servico.Infra.Licensing.Service.DataContract.LicenseDC>, List<Sinacor.Servico.Infra.Licensing.BusinessEntity.LicenseBE>>
    {
        public override Sinacor.Servico.Infra.Licensing.Service.DataContract.LicenseDC Translate(Sinacor.Servico.Infra.Licensing.BusinessEntity.LicenseBE from)
        {
            Sinacor.Servico.Infra.Licensing.Service.DataContract.LicenseDC to = new Sinacor.Servico.Infra.Licensing.Service.DataContract.LicenseDC();
            to.BinaryLicense = from.BinaryLicense;

            return to;
        }

    }
}

